home *** CD-ROM | disk | FTP | other *** search
/ Easy Baby Massage / Easy Baby Massage.iso / pc / content / main.dcr / Internal_57_button interactive (color).ls < prev    next >
Encoding:
Text File  |  2007-04-22  |  936 b   |  38 lines

  1. property pself, fcolor, bcolor, handle, linksprite
  2.  
  3. on beginSprite
  4.   pself = sprite(the currentSpriteNum)
  5. end
  6.  
  7. on mouseEnter
  8.   pself.foreColor = fcolor
  9.   if linksprite <> sprite(0) then
  10.     linksprite.mouseEnter()
  11.   end if
  12. end
  13.  
  14. on mouseLeave
  15.   pself.foreColor = bcolor
  16.   if linksprite <> sprite(0) then
  17.     linksprite.mouseLeave()
  18.   end if
  19. end
  20.  
  21. on mouseUp
  22.   if handle <> VOID then
  23.     do(handle)
  24.   end if
  25.   if linksprite <> sprite(0) then
  26.     linksprite.mouseUp()
  27.   end if
  28. end
  29.  
  30. on getPropertyDescriptionList
  31.   description = [:]
  32.   addProp(description, #fcolor, [#default: 5, #format: #integer, #comment: "mouse over color"])
  33.   addProp(description, #bcolor, [#default: 0, #format: #integer, #comment: "mouse out color"])
  34.   addProp(description, #handle, [#default: EMPTY, #format: #string, #comment: "command"])
  35.   addProp(description, #linksprite, [#default: sprite(0), #format: #sprite, #comment: "Link Sprite"])
  36.   return description
  37. end
  38.